﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="http://netdna.bootstrapcdn.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<title>lecture2a</title>
<style>
    div { margin-top: 30px; padding: 8px; border: solid 1px #ddd; }
</style>
</head>
<body>

<div class="container">
    <h1>JSTL Test4</h1>

    <c:url var="url1" value="/index.jsp" />
    <c:url var="url2" value="/jstl/test4.do" />
    <c:url var="url3" value="/jstl/test4.do">
        <c:param name="a" value="12" />
        <c:param name="b" value="34" />
    </c:url>
    <c:url var="url4" value="/jstl/test4.do">
        <c:param name="a" value="홍길동" />
    </c:url>

    <ul>
        <li>/lecture2a/index.jsp</li>
        <li><c:url value="/index.jsp" /></li>
        <li>${ url1 }</li>

        <li>/lecture2a/jstl/test4.do</li>
        <li><c:url value="/jstl/test4.do" /></li>
        <li>${ url2 }</li>

        <li>/lecture2a/jstl/test4.do?a=12&amp;b=34</li>
        <li>
            <c:url value="/jstl/test4.do">
                <c:param name="a" value="12" />
                <c:param name="b" value="23" />
            </c:url>
        </li>
        <li>${ url3 }</li>

        <li>/lecture2a/jstl/test4.do?a=홍길동</li>
        <li>
            <c:url value="/jstl/test4.do">
                <c:param name="a" value="홍길동" />
            </c:url>
        </li>
        <li>${ url4 }</li>
    </ul>

    <div>
        <a href="<c:url value='/index.jsp' />" class="btn">index.jsp</a>
    </div>

</div>

</body>
</html>